package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.GroupCompanyExample.E_COMPANY_ID;
import static org.jsola.hr.example.GroupCompanyExample.E_GROUP_ID;
import static org.jsola.hr.example.GroupCompanyExample.E_IS_ALL;
import static org.jsola.hr.example.GroupCompanyExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.GroupCompanyExample.M_GROUP_ID_MAX;
import static org.jsola.hr.example.GroupCompanyExample.M_GROUP_ID_NOT_NULL;
import static org.jsola.hr.example.GroupCompanyExample.N_COMPANY_ID;
import static org.jsola.hr.example.GroupCompanyExample.N_GROUP_ID;
import static org.jsola.hr.example.GroupCompanyExample.N_IS_ALL;

/**
 * 子公司分管公司关系表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【子公司分管公司关系表】的参数")
@Data
public class GroupCompanyAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_GROUP_ID, example = E_GROUP_ID, required = true)
    @NotNull(message = M_GROUP_ID_NOT_NULL)
    @Length(max = 32, message = M_GROUP_ID_MAX)
    private String groupId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_IS_ALL, example = E_IS_ALL)
    private Boolean isAll;


}

